package com.woody.aggregate.shop.req.es;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * &copy; All rights Reserved
 *
 * @author wénkǎi.zhāng 2025-04-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class EsShopListRequest extends EsSearchAfterRequest {

    @ApiModelProperty(value = "用户所在经纬度的维度", required = true, example = "30.226454")
    @NotNull(message = "用户所在经纬度不能为空")
    private BigDecimal latitude;

    @ApiModelProperty(value = "用户所在经纬度的经度", required = true, example = "119.706172")
    @NotNull(message = "用户所在经纬度不能为空")
    private BigDecimal longitude;

    @ApiModelProperty(value = "查询距离范围，单位：千米", required = true, example = "20")
    @NotNull(message = "查询距离范围不能为空")
    private Integer distanceLimit;

    @ApiModelProperty(value = "行业编码", example = "100100100")
    private Long shopIndustryCode;
}
